﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CinemaMaestro.DataLayer.Contracts.Entities
{
    public class Movie : IEntity
    {
        public Movie()
        {
            this.Categories = new HashSet<Category>();
            this.Actors = new HashSet<Actor>();
            this.Directors = new HashSet<Director>();
            this.Screenings = new HashSet<Screening>();
        }
        public int Id { get; set; }
        public string Title { get; set; }
        public int Duration { get; set; }
        public string Description { get; set; }
        public DateTime ReleaseDate { get; set; }
        public byte[] Image { get; set; }

        public virtual ICollection<Category> Categories { get; set; }
        public virtual ICollection<Actor> Actors { get; set; }
        public virtual ICollection<Director> Directors { get; set; }
        public virtual ICollection<Screening> Screenings { get; set; }
    }
}
